package com.swx.identityservice.service;

import com.swx.identityservice.models.ScbpUser;

import java.util.List;

public interface ScbpUserService extends CrudService<ScbpUser> {

    List<ScbpUser> selectAllWithOutDeletedByUserAndWorkNum(String affiliateddept, String WorkNum, String UserName, String Account,
                                                                String PhoneNumber, String Email,
                                                                String IdNumber, String CardType, Boolean IsInformal);



    List<ScbpUser> selectUsersByDeptId(Integer id);

    int selectCountByDeptId(int id);


    List<ScbpUser> selectUsersAndRolesById(Integer id);

    List<ScbpUser> selectDeptsByUserId(Integer id);

    ScbpUser selectUserByName(String name);

    int selectCountByRoleId(Integer RoleIds);

}
